package com.example.baseutils

import android.util.Log

/**
 * Author by lp,on 2021/6/29/029,10:57.
 */
object LogUtils {
    enum class LogLevel{
        D,
        I,
        E
    }
    fun log(tag:String,info:String,level:LogLevel=LogLevel.I){

        when(level){
            LogLevel.D->{
                Log.d(tag,info)
            }
            LogLevel.I->{
                Log.i(tag,info)
            }
            LogLevel.E->{
                Log.e(tag,info)
            }
        }

    }
}